package fr.afcepf.ai85.ent;

// Generated 21 mars 2013 17:20:56 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * InformationsQf generated by hbm2java
 */
@Entity
@Table(name = "informations_qf", catalog = "gepeto_db")
public class InformationsQf implements java.io.Serializable {

	private Integer idQf;
	private Eleve eleve;
	private int revenus;
	private int nombreParts;
	private Date dateDebutValidite;
	private Date dateFinValidite;

	public InformationsQf() {
	}

	public InformationsQf(Eleve eleve, int revenus, int nombreParts,
			Date dateDebutValidite) {
		this.eleve = eleve;
		this.revenus = revenus;
		this.nombreParts = nombreParts;
		this.dateDebutValidite = dateDebutValidite;
	}

	public InformationsQf(Eleve eleve, int revenus, int nombreParts,
			Date dateDebutValidite, Date dateFinValidite) {
		this.eleve = eleve;
		this.revenus = revenus;
		this.nombreParts = nombreParts;
		this.dateDebutValidite = dateDebutValidite;
		this.dateFinValidite = dateFinValidite;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID_QF", unique = true, nullable = false)
	public Integer getIdQf() {
		return this.idQf;
	}

	public void setIdQf(Integer idQf) {
		this.idQf = idQf;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ID_ELEVE", nullable = false)
	public Eleve getEleve() {
		return this.eleve;
	}

	public void setEleve(Eleve eleve) {
		this.eleve = eleve;
	}

	@Column(name = "REVENUS", nullable = false)
	public int getRevenus() {
		return this.revenus;
	}

	public void setRevenus(int revenus) {
		this.revenus = revenus;
	}

	@Column(name = "NOMBRE_PARTS", nullable = false)
	public int getNombreParts() {
		return this.nombreParts;
	}

	public void setNombreParts(int nombreParts) {
		this.nombreParts = nombreParts;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_DEBUT_VALIDITE", nullable = false, length = 10)
	public Date getDateDebutValidite() {
		return this.dateDebutValidite;
	}

	public void setDateDebutValidite(Date dateDebutValidite) {
		this.dateDebutValidite = dateDebutValidite;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATE_FIN_VALIDITE", length = 10)
	public Date getDateFinValidite() {
		return this.dateFinValidite;
	}

	public void setDateFinValidite(Date dateFinValidite) {
		this.dateFinValidite = dateFinValidite;
	}

}
